package com.obtk.model;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * 功能说明
 *
 * @author Mr.Sun
 * @date 2023-04-05 15:26:57
 */
public class SelChance implements Serializable {
// `id` INT PRIMARY KEY AUTO_INCREMENT COMMENT'id',
//  `chc_id` VARCHAR(50) COMMENT'联系人编号',
//  `chc_source` VARCHAR(50) COMMENT'机会来源',
//  `chc_cust_name` VARCHAR(100) NOT NULL COMMENT'客户名称',  -- 关联客户表(customer) cust_name
//  `chc_title` VARCHAR(200) NOT NULL COMMENT'概要(对销售机会的简要描述)',
//  `chc_rate` INT NOT NULL COMMENT'成功机率',
//  `chc_linkman` VARCHAR(50) COMMENT'联系人', -- 关联联系人表（cst_linkman） lkm_name
//  `chc_tel` VARCHAR(50) COMMENT'联系人电话',-- 关联联系人表（cst_linkman） lkm_mobile
//  `chc_birthday` DATE NOT NULL COMMENT'联系人生日',-- 关联联系人表（cst_linkman） lkm_birthday
//  `chc_gender` VARCHAR(5) COMMENT'联系人性别',
//  `chc_desc` VARCHAR(2000) NOT NULL COMMENT'机会描述',
//  `chc_create_id` BIGINT NOT NULL COMMENT'创建人编号	',
//  `chc_create_name` VARCHAR(50) NOT NULL COMMENT'创建人姓名',
//  `chc_create_date` DATETIME DEFAULT NOW() NOT NULL COMMENT'创建时间',
//  `chc_due_id` BIGINT COMMENT'指派给的人编号', -- 关联用户角色表(user_role) user_id
//  `chc_due_name` VARCHAR(50) COMMENT'指派给的人姓名',-- 关联用户表(user_role) user_id
//  `chc_due_date` DATETIME COMMENT'指派时间',
//  `chc_status` INT NOT NULL COMMENT'销售机会状态', --  1已指派 2待指派 3 指派完
//  `chc_due_status` INT NOT NULL COMMENT'销售状态'
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    private String chcId;
    private String chcSource;
    private String chcCustName;
    private String chcTitle;
    private Integer chcRate;
    private String chcLinkman;
    private String chcTel;
    private Date chcBirthday;
    private String chcGender;
    private String chcDesc;
    private Integer chcCreateId;
    private String chcCreateName;
    private Date chcCreateDate;
    private Integer chcDueId;
    private String chcDueName;
    private Date chcDueDate;
    private Integer chcStatus;
    private Integer chcDueStatus;

    @Override
    public String toString() {
        return "SelChance{" +
                "id=" + id +
                ", chcId='" + chcId + '\'' +
                ", chcSource='" + chcSource + '\'' +
                ", chcCustName='" + chcCustName + '\'' +
                ", chcTitle='" + chcTitle + '\'' +
                ", chcRate=" + chcRate +
                ", chcLinkman='" + chcLinkman + '\'' +
                ", chcTel='" + chcTel + '\'' +
                ", chcBirthday=" + chcBirthday +
                ", chcGender='" + chcGender + '\'' +
                ", chcDesc='" + chcDesc + '\'' +
                ", chcCreateId=" + chcCreateId +
                ", chcCreateName='" + chcCreateName + '\'' +
                ", chcCreateDate=" + chcCreateDate +
                ", chcDueId=" + chcDueId +
                ", chcDueName='" + chcDueName + '\'' +
                ", chcDueDate=" + chcDueDate +
                ", chcStatus=" + chcStatus +
                ", chcDueStatus=" + chcDueStatus +
                '}';
    }

    public SelChance() {
    }

    public SelChance(Integer id, String chcId, String chcSource, String chcCustName, String chcTitle, Integer chcRate, String chcLinkman, String chcTel, Date chcBirthday, String chcGender, String chcDesc, Integer chcCreateId, String chcCreateName, Date chcCreateDate, Integer chcDueId, String chcDueName, Date chcDueDate, Integer chcStatus, Integer chcDueStatus) {
        this.id = id;
        this.chcId = chcId;
        this.chcSource = chcSource;
        this.chcCustName = chcCustName;
        this.chcTitle = chcTitle;
        this.chcRate = chcRate;
        this.chcLinkman = chcLinkman;
        this.chcTel = chcTel;
        this.chcBirthday = chcBirthday;
        this.chcGender = chcGender;
        this.chcDesc = chcDesc;
        this.chcCreateId = chcCreateId;
        this.chcCreateName = chcCreateName;
        this.chcCreateDate = chcCreateDate;
        this.chcDueId = chcDueId;
        this.chcDueName = chcDueName;
        this.chcDueDate = chcDueDate;
        this.chcStatus = chcStatus;
        this.chcDueStatus = chcDueStatus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getChcId() {
        return chcId;
    }

    public void setChcId(String chcId) {
        this.chcId = chcId;
    }

    public String getChcSource() {
        return chcSource;
    }

    public void setChcSource(String chcSource) {
        this.chcSource = chcSource;
    }

    public String getChcCustName() {
        return chcCustName;
    }

    public void setChcCustName(String chcCustName) {
        this.chcCustName = chcCustName;
    }

    public String getChcTitle() {
        return chcTitle;
    }

    public void setChcTitle(String chcTitle) {
        this.chcTitle = chcTitle;
    }

    public Integer getChcRate() {
        return chcRate;
    }

    public void setChcRate(Integer chcRate) {
        this.chcRate = chcRate;
    }

    public String getChcLinkman() {
        return chcLinkman;
    }

    public void setChcLinkman(String chcLinkman) {
        this.chcLinkman = chcLinkman;
    }

    public String getChcTel() {
        return chcTel;
    }

    public void setChcTel(String chcTel) {
        this.chcTel = chcTel;
    }

    public Date getChcBirthday() {
        return chcBirthday;
    }

    public void setChcBirthday(Date chcBirthday) {
        this.chcBirthday = chcBirthday;
    }

    public String getChcGender() {
        return chcGender;
    }

    public void setChcGender(String chcGender) {
        this.chcGender = chcGender;
    }

    public String getChcDesc() {
        return chcDesc;
    }

    public void setChcDesc(String chcDesc) {
        this.chcDesc = chcDesc;
    }

    public Integer getChcCreateId() {
        return chcCreateId;
    }

    public void setChcCreateId(Integer chcCreateId) {
        this.chcCreateId = chcCreateId;
    }

    public String getChcCreateName() {
        return chcCreateName;
    }

    public void setChcCreateName(String chcCreateName) {
        this.chcCreateName = chcCreateName;
    }

    public Date getChcCreateDate() {
        return chcCreateDate;
    }

    public void setChcCreateDate(Date chcCreateDate) {
        this.chcCreateDate = chcCreateDate;
    }

    public Integer getChcDueId() {
        return chcDueId;
    }

    public void setChcDueId(Integer chcDueId) {
        this.chcDueId = chcDueId;
    }

    public String getChcDueName() {
        return chcDueName;
    }

    public void setChcDueName(String chcDueName) {
        this.chcDueName = chcDueName;
    }

    public Date getChcDueDate() {
        return chcDueDate;
    }

    public void setChcDueDate(Date chcDueDate) {
        this.chcDueDate = chcDueDate;
    }

    public Integer getChcStatus() {
        return chcStatus;
    }

    public void setChcStatus(Integer chcStatus) {
        this.chcStatus = chcStatus;
    }

    public Integer getChcDueStatus() {
        return chcDueStatus;
    }

    public void setChcDueStatus(Integer chcDueStatus) {
        this.chcDueStatus = chcDueStatus;
    }
}
